package routers

import (
	beego "github.com/beego/beego/v2/server/web"
	"shops/controllers"
)

func init() {
	beego.Router("/", &controllers.MainController{})
	beego.Router("/shops/add", &controllers.ShopsController{}, "post:Add")
	beego.Router("/shops/list", &controllers.ShopsController{}, "post,get:List")
	beego.Router("/shops/update", &controllers.ShopsController{}, "post:Update")
	beego.Router("/user/register", &controllers.UserController{}, "post:Register")
	beego.Router("/user/login", &controllers.UserController{}, "post:Login")
}
